namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class VideoCultureMap : ClassMap<VideoCultureDataModel>
    {
        #region Constructors and Destructors

        public VideoCultureMap()
        {
            this.Table("VideoCulture");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.VideoId).Column("VideoID");
            this.Map(x => x.CultureCode).Column("CultureCode");
            this.Map(x => x.CreationDate).Not.Nullable().Column("CreationDate");
            this.Map(x => x.ModificationDate).Not.Nullable().Column("ModificationDate");
            this.Map(x => x.ApprobationDate).Column("ApprobationDate");
            this.Map(x => x.AuthorID).Column("AuthorID");
            this.Map(x => x.Title).Column("Title");
            this.Map(x => x.Description).Column("Description");
            this.Map(x => x.VideoFile).Column("VideoFile");
            this.Map(x => x.VideoFilePreview).Column("VideoFilePreview");
            this.Map(x => x.ImageFile).Column("ImageFile");
            this.Map(x => x.ImageFilePreview).Column("ImageFilePreview");
            this.Map(x => x.IsVisible).Not.Nullable().Column("Visible");
            this.Map(x => x.IsVisiblePreview).Not.Nullable().Column("VisiblePreview");
            this.Map(x => x.VideoStatus).Not.Nullable().Column("VideoStatus");
            this.Map(x => x.Duration).Column("Duration");
        }

        #endregion
    }
}